package com.ylb.rent.entity.vo;

import com.ylb.rent.entity.*;
import lombok.*;

import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/7/3 8:49
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ApartmentDetailVo {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 公寓名 */

    private String apartmentName;

    /** 地址 */

    private String address;

    /** 详细描述 */

    private String description;

    /** 取消策略 */
    private Cancel cancel;

    /** $column.columnComment */

    private Integer isDelete;

    private List<Stuff> stuffList;

    private List<Security> securityList;

    private List<Forbid> forbidList;

    private List<Feetype> feetypeList;

    private Country country;

    private List<City> cityList;

    private List<RoomVo> roomList;

    private List<ApartmentSchoolVo>  schoolList;

    private List<String> imageList;

    public Apartment getApartment(){
        return Apartment.builder().id(this.id)
                .apartmentName(this.apartmentName)
                .address(this.address)
                .description(this.description)
                .cancelId(this.cancel.getId())
                .isDelete(this.isDelete)
                .build();
    }


}
